package org.dromara.system.controller;

import lombok.RequiredArgsConstructor;
import org.dromara.common.mybatis.core.page.PageQuery;
import org.dromara.common.mybatis.core.page.TableDataInfo;
import org.dromara.system.domain.bo.SysDictDataBo;
import org.dromara.system.domain.vo.SysDictDataVo;
import org.dromara.system.service.ISysDictDataService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName EY-SysDictDataController
 * @Description org.dromara.system.controller
 * @Author menyj
 * @Date 2025/4/4
 **/
@RequiredArgsConstructor
@RestController
@RequestMapping("/dict/data")
public class SysDictDataController {

    private final ISysDictDataService iSysDictDataService;

    @GetMapping("/list")
    public TableDataInfo<SysDictDataVo> list(SysDictDataBo dictData, PageQuery pageQuery) {
        return iSysDictDataService.selectPageDictDataList(dictData, pageQuery);
    }
}
